package com.vpclub.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;
import java.util.List;

/**
 *      自定义视图解析器和视图对象
 *
 * @author : leimingchao
 * @date Date : 2021年07月31日 20:45
 */
@Controller
public class MyViewResolverController {

    @RequestMapping(value = "/handlePlus")
    public String handlePlus(Model model) {
        List<String> vname = new ArrayList<>();
        List<String> imageName = new ArrayList<>();

        vname.add("佟老师");
        vname.add("飞哥");

        imageName.add("萌萌");

        model.addAttribute("video",vname);
        model.addAttribute("images",imageName);
        return "meinv:/gaoqing";
    }

}
